From 2877ed6556debabcd7050d1b7a879e78c6aadc6a Mon Sep 17 00:00:00 2001 From: Tim Deegan Date: Tue, 24 May 2011 09:30:51 +0100 Subject: [PATCH] x86/mm: Fix one more check in the EPT p2m code This is one more place that needs to check for 0 entries after the AMD p2m-sharing patch made p2m_ram_rw == 0 Signed-off-by: Tim Deegan --- xen/arch/x86/mm/p2m-ept.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/mm/p2m-ept.c b/xen/arch/x86/mm/p2m-ept.c index d86a663d86..e05d14b072 100644 --- a/xen/arch/x86/mm/p2m-ept.c +++ b/xen/arch/x86/mm/p2m-ept.c @@ -736,7 +736,7 @@ void ept_change_entry_emt_with_range(struct domain *d, uint64_t trunk = 0; e = ept_get_entry_content(p2m, gfn, &level); - if ( !p2m_has_emt(e.sa_p2mt) ) + if ( !is_epte_present(&e) || !p2m_has_emt(e.sa_p2mt) ) continue; order = 0; -- 2.30.2